package com.qf.smsplatform.webmaster.pojo;


import org.springframework.util.ObjectUtils;

public class TDirtyword implements CheckNull{

  private Long id;
  private String dirtyword;
  private Long owntype;
  private Long creater;

  private TAdminUser adminUser;

  public TAdminUser getAdminUser() {
    return adminUser;
  }

  public void setAdminUser(TAdminUser adminUser) {
    this.adminUser = adminUser;
  }


  @Override
  public boolean isNull(CheckType type) {
    switch (type){
      case ADD:
      case UPDATE:
        return ObjectUtils.isEmpty(id);
      case DELETE:
    }
    return CheckNull.super.isNull(type);
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public String getDirtyword() {
    return dirtyword;
  }

  public void setDirtyword(String dirtyword) {
    this.dirtyword = dirtyword;
  }


  public Long getOwntype() {
    return owntype;
  }

  public void setOwntype(Long owntype) {
    this.owntype = owntype;
  }


  public Long getCreater() {
    return creater;
  }

  public void setCreater(Long creater) {
    this.creater = creater;
  }

  @Override
  public String toString() {
    return "TDirtyword{" +
            "id=" + id +
            ", dirtyword='" + dirtyword + '\'' +
            ", owntype=" + owntype +
            ", creater=" + creater +
            ", adminUser=" + adminUser +
            '}';
  }
}
